/*
 * Molecule.cpp
 *
 *  Created on: Feb 28, 2011
 *      Author: wjfortin
 */

#include "Molecule.h"

int Molecule::moleculeCounter = 0;

/**
 * Fill in
 */
Molecule::Molecule() {

	//give each molecule a unique ID
	moleculeID = moleculeCounter++;
	calculate = true;
	rkData = 0;

}

/**
 * Fill in
 */
Molecule::~Molecule()
{
	delete concentration;
	delete initialConcentration;
}

/**
 * Fill in
 */
Concentration* Molecule::getConcentration()
{
	return concentration;
}

/**
 * Fill in
 */
Quantity* Molecule::getInitialConcentration()
{
	return initialConcentration;
}

/**
 * Fill in
 */
int Molecule::getMoleculeID()
{
	return moleculeID;
}

/*
 * Set whether or not a molecule will have it's concentration calculated during runge-kutta
 */
void Molecule::setCalculate(bool b)
{
	calculate = b;
}
